package com.netease.pris.activity.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import com.netease.framework.k;
import com.netease.pris.activity.a.d;

public class pageList extends LinearLayout
{
  private d a;
  private View b;
  private ai c;
  private Context d;

  public pageList(Context paramContext)
  {
    this(paramContext, null);
  }

  public pageList(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    this.d = paramContext;
  }

  private void a(View paramView)
  {
    if (this.b != paramView)
    {
      if (this.b != null)
        this.b.setBackgroundDrawable(k.a(this.d).b(2130837543));
      if (paramView != null)
        paramView.setBackgroundDrawable(k.a(this.d).b(2130837545));
      this.b = paramView;
    }
  }

  private void c()
  {
    int i = this.a.getCount();
    int j = 0;
    if (j < i)
    {
      View localView = this.a.getView(j, null, null);
      if (j == 0)
      {
        this.b = localView;
        localView.setBackgroundDrawable(k.a(this.d).b(2130837545));
      }
      LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-2, -2);
      if (j != i - 1);
      for (localLayoutParams.rightMargin = 12; ; localLayoutParams.rightMargin = 0)
      {
        addView(localView, localLayoutParams);
        j++;
        break;
      }
    }
  }

  public void a()
  {
    if (this.b != null)
      this.b.setBackgroundDrawable(k.a(this.d).b(2130837545));
  }

  public void a(int paramInt)
  {
    new br(this, paramInt).run();
  }

  public void a(d paramd)
  {
    this.a = paramd;
    removeAllViews();
    c();
  }

  public void a(ai paramai)
  {
    this.c = paramai;
  }

  public d b()
  {
    return this.a;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.view.pageList
 * JD-Core Version:    0.6.0
 */